package com.snowfield.lbcommon.velocity.haproxy;

/**
 * haproxy配置文件default域
 */
public class DefaultSection {
    //是否开启redispatch
    private Boolean optRedispatch = Boolean.TRUE;
    //是否开启forwardfor
    private Boolean optForwardfor = Boolean.TRUE;
    // http or tcp
    private String mode = "http";

    private String timeoutHttpRequest = "10s";
    private String timeoutConnect = "15s";
    private String timeoutClient = "1m";
    private String timeoutServer = "1m";
    private String timeoutHttpKeepAlive = "10s";

    private Integer maxconn = 30000;

    public Boolean getOptRedispatch() {
        return optRedispatch;
    }

    public void setOptRedispatch(Boolean optRedispatch) {
        this.optRedispatch = optRedispatch;
    }

    public Boolean getOptForwardfor() {
        return optForwardfor;
    }

    public void setOptForwardfor(Boolean optForwardfor) {
        this.optForwardfor = optForwardfor;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getTimeoutHttpRequest() {
        return timeoutHttpRequest;
    }

    public void setTimeoutHttpRequest(String timeoutHttpRequest) {
        this.timeoutHttpRequest = timeoutHttpRequest;
    }

    public String getTimeoutConnect() {
        return timeoutConnect;
    }

    public void setTimeoutConnect(String timeoutConnect) {
        this.timeoutConnect = timeoutConnect;
    }

    public String getTimeoutClient() {
        return timeoutClient;
    }

    public void setTimeoutClient(String timeoutClient) {
        this.timeoutClient = timeoutClient;
    }

    public String getTimeoutServer() {
        return timeoutServer;
    }

    public void setTimeoutServer(String timeoutServer) {
        this.timeoutServer = timeoutServer;
    }

    public String getTimeoutHttpKeepAlive() {
        return timeoutHttpKeepAlive;
    }

    public void setTimeoutHttpKeepAlive(String timeoutHttpKeepAlive) {
        this.timeoutHttpKeepAlive = timeoutHttpKeepAlive;
    }

    public Integer getMaxconn() {
        return maxconn;
    }

    public void setMaxconn(Integer maxconn) {
        this.maxconn = maxconn;
    }
}
